<%@page import="com.kaishengit.dao.ProdDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	String name = request.getParameter("name");
	String price = request.getParameter("price");

	ProdDao dao = new ProdDao();
	dao.save(name,Float.parseFloat(price));
	
	response.sendRedirect("home.jsp");
%>
